]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overviewControls: Shift up on double-super
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 15 Nov 2017 17:15:49 +0000 (17:15 +0000)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 2 Mar 2021 14:36:26 +0000 (15:36 +0100)
Right now a second super press during the overview transition hides
the overview again. Change that behavior to shift up to the app grid
instead, which is more useful.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1736>

js/ui/overviewControls.js

index 3116df4870723f4ded950e4ef4664b765890d3d7..d595facae742206b56233eb02c3a2c00eaddcff7 100644 (file)
@@ -371,7 +371,13 @@ class ControlsManager extends St.Widget {
             if (this._a11ySettings.get_boolean('stickykeys-enable'))
                 return;
 
-            Main.overview.toggle();
+            const { initialState, finalState, transitioning } =
+                this._stateAdjustment.getStateTransitionParams();
+
+            if (transitioning && finalState > initialState)
+                this._shiftState(Meta.MotionDirection.UP);
+            else
+                Main.overview.toggle();
         });
 
         Main.wm.addKeybinding(